/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package commom;

import java.util.UUID;

/**
 *
 * @author gravena
 */
public class VirtualMachine extends Host {
    private boolean availabe;
    private String disk;
    private int id; /* Totally diferent from the uuid attribute, the id is used by the hypervisor, the uuid is used by the COMEVIM */

    public VirtualMachine(String ip, int port, String name, boolean active, boolean availabe) {
        super(ip, port, name, active);
        this.availabe = availabe;
    }

    public VirtualMachine(String ip, String port, String name, String active, String availabe) {
        super(ip, Integer.valueOf(port), name, Boolean.valueOf(active));
        this.availabe = Boolean.valueOf(availabe);
    }

    public String getDisk() {
        return disk;
    }

    public void setDisk(String disk) {
        this.disk = disk;
    }
    
    public boolean isAvailabe() {
        return availabe;
    }

    public void setAvailabe(boolean availabe) {
        this.availabe = availabe;
    }

    @Override
    public String toString() {
        return this.getName();
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
    
    
}
